<form id="pagerForm" method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/record/')}">
	<input type="hidden" name="pageNum" value="{$currentPage|default='1'}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="_order" value="{$_REQUEST._order}"/>
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}"/>
	<input type="hidden" name="search_where[sequence][like]" value="{$_REQUEST.search_where.sequence.like}"/>
	<input type="hidden" name="search_where[supplier_id][eq]" value="{$_REQUEST.search_where.supplier_id.eq}"/>
	<input type="hidden" name="search_where[depot_id][eq]" value="{$_REQUEST.search_where.depot_id.eq}"/>
	<input type="hidden" name="search_where[date][and][gt_date]" value="{$_REQUEST.search_where.date.and.gt_date}"/>
	<input type="hidden" name="search_where[date][and][lt_date]" value="{$_REQUEST.search_where.date.and.lt_date}"/>
	<input type="hidden" name="search_where[status][eq]" value="{$_REQUEST.search_where.status.eq}"/>
</form>
<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/record/')}" method="post">
			<table class="searchContent" width="100%" style="align:left;">
				<tr>
		    		<td width="4%" align="right">入库编码：</td>
		    		<td width="5%" align="left">
						<input type="text" name="search_where[sequence][like]" size="20" minlength="2" maxlength="20" value="{$search_where.sequence.like}"/>
 					</td>
 					<td width="4%" align="right">供应商：</td>
 					<td width="5%" align="left">
						<select class="combox" name="search_where[supplier_id][eq]">
							<option value="">请选择</option>
							<foreach name='supplier' item='v'>
								<option value="{$v['id']}" <eq name="_REQUEST.search_where.supplier_id.eq" value="$v['id']">selected=selected</eq>>{$v['name']}</option>
							</foreach>
						</select>
					</td>	
					<td width="4%" align="right">入库库房：</td>
					<td width="5%" align="right">
	 					<select class="combox" name="search_where[depot_id][eq]">
							<option value="">请选择</option>
							<foreach name='depot' item='v'>
								<option value="{$v['id']}" <eq name="_REQUEST.search_where.depot_id.eq" value="$v['id']">selected=selected</eq>>{$v['name']}</option>
							</foreach>
						</select>		
					</td>

					<td width="4%" align="right">入库时间：</td>
					<td width="5%">
						<input type="text" maxdate="2020-03-13" mindate="2016-03-02" datefmt="yyyy-MM-dd" class="date textInput readonly valid" name="search_where[date][and][gt_date]" readonly="readonly"  size="13" value="{$search_where.date.and.gt_date}"/>
					</td>						
					<td style="align:center;" width="2%">至</td>
					<td width="5%"><input type="text" maxdate="2020-03-13" mindate="2016-03-02" datefmt="yyyy-MM-dd" class="date textInput readonly valid" name="search_where[date][and][lt_date]" readonly="readonly" size="13" value="{$search_where.date.and.lt_date}"/>
					</td>
					<td width="4%" align="right">状态：</td>
					<td width="5%" align="left">
						<select class="combox" name="search_where[status][eq]">
							<option value="">请选择</option>
							<option value="1" <eq name="_REQUEST.search_where.status.eq" value="1">selected=selected</eq>>初始</option>
							<option value="2" <eq name="_REQUEST.search_where.status.eq" value="2">selected=selected</eq>>审核</option>
						</select>
					</td>
					<td width="5%"></td>
					<td align="right" width="5%">
						<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
					</td>
		    	</tr>
			</table>
		</form>
	</div>
<div class="pageContent">
	<!--<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/add')}" target="navTab" rel="storageAdd" title="物料入库"><span>添加</span></a></li>
			<li><a class="delete" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/del')}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_goods}" target="navTab" warn="请选择一个用户"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/search')}" target="dialog" mask="true" title="查询框"><span>检索</span></a></li>
		</ul>
	</div>-->
	<table class="table" width="100%" layoutH="85">
		<thead>
			<tr>
				<th width="30">序号</th>
				<th width="120">出库编码</th>
				<th width="80">出库时间</th>
				<th width="80">领料单位</th>
				<th width="80">类型</th>
				<th width="50">库房</th>
				<th>总数量</th>
				<th>总金额</th>
				<th width="50">领料人</th>
				<th width="50">发料人</th>
				<th width="70">操作</th>
			</tr>
		</thead>
		<tbody>
			<foreach name='list' item='v' key='k'>
			<tr target="sid_goods" rel="{$v['id']}">
				<td>{$k+1}</td>
				<td>
					<a title="入库列表" target="navTab" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/index/',array('sequence'=>$v['sequence']),'')}" rel="storageList">{$v['sequence']}</a>
				</td>
				<td>{$v['date']|date='Y-m-d',###}</td>
				<td>{$v['customer_name']}</td>
				<td>{$v['customer_type']}</td>
				<td>{$v['depot_name']}</td>
				<td>{$v['sum']}</td>
				<td>{$v['jine']}</td>
				<td>{$v['sender']}</td>
				<td>{$v['receive']}</td>
				<td>
					<a title="入库列表" target="navTab" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/index/',array('sequence'=>$v['sequence']),'')}" class="btnInfo" rel="storageList">入库明细</a>
				</td>
			</tr>
			</foreach>
		</tbody>
	</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({$Think.config.TMPL_L_DELIM}numPerPage:this.value{$Think.config.TMPL_R_DELIM})">
					<option value="10" <if condition="$numPerPage eq 10">selected</if>>10</option>
					<option value="20" <if condition="$numPerPage eq 20">selected</if>>20</option>
					<option value="50" <if condition="$numPerPage eq 50">selected</if>>50</option>
					<option value="100" <if condition="$numPerPage eq 100">selected</if>>100</option>
				</select>
				<span>条，共{$totalCount}条</span>
			</div>

			<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$currentPage}"></div>
		</div>
</div>
</div>